import request from '@/utils/request'

// 获取Token
export function getToken(data) {
  return request({
    url: '/system/token/getToken',
    method: 'post',
    data: data
  })
}

// 清空所有Token缓存
export function clearAllTokenCache() {
  return request({
    url: '/system/token/clearAllCache',
    method: 'post'
  })
}

// 清空指定Token缓存
export function clearTokenCache(data) {
  return request({
    url: '/system/token/clearCache',
    method: 'post',
    data: data
  })
}

// 刷新Token缓存
export function refreshTokenCache(data) {
  return request({
    url: '/system/token/refreshCache',
    method: 'post',
    data: data
  })
}